package com.nmsl.controller;

import com.nmsl.common.core.domain.R;
import com.nmsl.service.MySysDictDataService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/sysDictData")
public class MySysDictDataController {
    @Autowired
    private MySysDictDataService mySysDictDataService;
    @GetMapping("/selectAllSex")
    public R selectAllSex(){
        return R.ok(mySysDictDataService.selectAllSex());
    }
    @GetMapping("/selectAllMinZu")
    public R selectAllMinZu(){
        return R.ok(mySysDictDataService.selectAllMinZu());
    }

    @GetMapping("/selectAllZhiYe")
    public R selectAllZhiYe(){
        return R.ok(mySysDictDataService.selectAllZhiYe());
    }

    @GetMapping("/selectAllHunYin")
    public R selectAllHunYin(){return R.ok(mySysDictDataService.selectAllHunYin());}

    @GetMapping("/selectAllOrderType")
    public R selectAllOrderType(){return R.ok(mySysDictDataService.selectAllOrderType());}
}
